#include "DXVertexBuffer.h"

void DXVertexBuffer::fill(DXVertex* Data)
{
	// Linking vertices coordinates to VBO
	VOID* p_Values;
	if (FAILED(mBuffer->Lock(0, mSize * sizeof(DXVertex) , (void**)&p_Values, 0))) //Locking
		WriteConsole( "Error Trying to lock  : fill()\n" );
	else
	{
		memcpy(p_Values, Data, mSize * sizeof(DXVertex));
		mBuffer->Unlock();
	}
}
